﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomeMain.master" AutoEventWireup="true" CodeFile="Product-Detail.aspx.cs" Inherits="Product_Detail" %>

<%@ Register Src="~/Controls/Product-Intro.ascx" TagPrefix="uc1" TagName="ProductIntro" %>
<%@ Register Src="~/Controls/Menu/Siderbar_Left.ascx" TagPrefix="uc1" TagName="Siderbar_Left" %>




<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="row">
        <div class="col-md-12">
            <ul class="breadcrumb">
                <li>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx"><span class="glyphicon glyphicon-home"></span></asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink ID="linkcrumTEN" runat="server"></asp:HyperLink></li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-md-3">
            <uc1:Siderbar_Left runat="server" ID="Siderbar_Left" />
        </div>
        <div class="col-md-9">
            <div class="row product-page">
                <div class="row product-detail">
                    <div class="col-md-5 product-img">
                        <asp:Image ID="imgSP" runat="server" CssClass="product-imgdetail" />

                    </div>
                    <div class="col-md-6 product-decs pull-right">
                        <div class="row">
                            <div class="col-md-12">
                                <p class="product-titleLOL">
                                    <asp:Label ID="lblTenSP" runat="server" CssClass=""></asp:Label>
                                    <asp:Label ID="lblMaSP" runat="server" Text='<%# Bind("masp") %>'
                                        Visible="False"></asp:Label>
                                </p>
                            </div>
                        </div>
                        <p id="pQuantityAvailable" class="bg-stock">
                            <asp:Label ID="lblSoLuong" runat="server" Text=""></asp:Label>
                        </p>
                        <div class="row">
                            <div class="col-md-12">
                                <p class="product-price">
                                    <asp:Label ID="lblGia" runat="server" Text=""> đ</asp:Label>
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="col-md-5">
                                    <div class="input-group">
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-default btn-number" disabled="disabled" data-type="minus" data-field="quant[1]">
                                                <span class="glyphicon glyphicon-minus"></span>
                                            </button>
                                        </span>
                                        <input type="text" name="quant[1]" class="form-control input-number" value="1" min="1" max="10">
                                        <span class="input-group-btn">
                                            <button type="button" class="btn btn-default btn-number" data-type="plus" data-field="quant[1]">
                                                <span class="glyphicon glyphicon-plus"></span>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row" style="padding-top: 10px;">
                            <div class="col-md-12">
                                <%--                    <div class="product-btnbuy">
                        <asp:Button ID="btnMua" runat="server" Text="MUA NGAY,GIAO HÀNG TẬN NƠI" CssClass="btn btn-warning " OnClick="btnMua_Click" />
                    </div>--%>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="product-btnbuy">
                                    <asp:Button ID="btnThemVaoGioHang" runat="server" Text="THÊM VÀO GIỎ HÀNG" CssClass="btn btn-warning " OnClick="btnThemVaoGioHang_Click" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row product-tab">
                    <div class="col-md-12">
                        <!-- tabs -->
                        <div class="product-tabcontent">
                            <ul id="tabs" class="nav nav-tabs " data-tabs="tabs">
                                <li class="active"><a href="#thongso" data-toggle="tab">Thông Số Kỹ Thuật</a></li>
                                <li><a href="#binhluan" data-toggle="tab">Bình Luận</a></li>
                            </ul>
                            <div id="my-tab-content" class="tab-content">
                                <div class="tab-pane active" id="thongso">
                                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                </div>
                                <div class="tab-pane" id="binhluan">
                                    <div class="news-cmt">
                                        <h3>Bình luận :</h3>
                                         <div class="well">
                        <h3>MỜI BẠN BÌNH LUẬN HOẶC ĐẶT CÂU HỎI VỀ CHỦ ĐỀ NÀY</h3>
                        <form role="form">
                            <div class="form-group">
                                <asp:TextBox ID="txtND" runat="server" CssClass="form-control" Columns="30" Height="61px" Rows="10" TextMode="MultiLine" Width="561px"></asp:TextBox>               
                            </div>
                            <asp:Button ID="Button1" runat="server" CssClass="btn btn-primary" Text="Gửi" OnClick="Button1_Click" />
                        </form>
                    </div>
                                        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource3">

                                            <ItemTemplate>
                                                <div class="media">
                                                    <a href="#" class="pull-left">
                                                        <asp:Image ID="HinhDaiDien" CssClass="media-object" runat="server" Height="64px" Width="64px" ImageUrl="~/Images/avat.png" />
                                                    </a>
                                                    <div class="media-body">
                                                        <p>
                                                            <strong>
                                                                <asp:Label ID="TieuDeCMT" runat="server" Text='<%# Eval("tennguoinhan") %>'></asp:Label></strong>
                                                        </p>
                                                        <p>
                                                            <asp:Label ID="NoiDungCMT" runat="server" Text='<%# Eval("noidung") %>'></asp:Label>
                                                        </p>

                                                    </div>
                                                </div>

                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <asp:SqlDataSource ID="SqlDataSource3" runat="server"
                                            ConnectionString="<%$ ConnectionStrings:QLBSConnectionString %>"
                                            SelectCommand="SELECT * FROM [BinhLuan] WHERE ([masp] = @masp)">
                                            <SelectParameters>
                                                <asp:QueryStringParameter QueryStringField="masp" Name="masp" Type="Int32"></asp:QueryStringParameter>
                                            </SelectParameters>
                                        </asp:SqlDataSource>

                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
</asp:Content>








